//
//  JZCameraShootingCenterButton.h
//  JZShortVideo
//
//  Created by liujz on 31/05/2018.
//  Copyright © 2018 liujz. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JZCameraShootingCenterButton;

//类型枚举
enum {
    TapGesture,
    LongPressGesture
    
};

typedef NSInteger TapType;

@protocol shootingCenterDelegate <NSObject>

/**
 开始录制或者拍照
 
 @param action 判断拍照还是录制类型
 */
- (void)shootingStart:(TapType)action obj:(JZCameraShootingCenterButton *)button;

/**
 录制或者拍照结束的回调
 
 @param action 判断拍照还是录制类型
 */
- (void)shootingEnd:(TapType)action obj:(JZCameraShootingCenterButton *)button;

@end

@interface JZCameraShootingCenterButton : UIView

@property (nonatomic, assign)   BOOL tapEnable;

@property (nonatomic, assign)   BOOL longPressEnable;

@property(nonatomic, weak)      id<shootingCenterDelegate> shootingCenterDelegate;

+ (JZCameraShootingCenterButton *)getShootingCenterButton:(CGFloat)maxLineW minLineWidth:(CGFloat)minLineW lineColor:(UIColor *)lineColor centerColor:(UIColor *)centerColor TapEnable:(BOOL) tapEnable LongPressEnable:(BOOL) longPressEnable ;

@end



